package com.baohua.util;

import java.util.UUID;
/**
 * 一个UUID编码
 * @author Happy Everyday
 *
 */
public class UUIDCode {

	public static String getUUIDCode(String prefix) {
		
		UUID uuid = UUID.randomUUID();
		
		String code = prefix + uuid.toString().replaceAll("-", "");
		
		return code;
		
	}
	
//	public static void main(String args[]){
//		System.out.println(UUIDCode.getUUIDCode("DD"));
//	}
}
